sysroot: Drop an unnecessary fsync
authorColin Walters <walters@verbum.org>
Wed, 14 Sep 2016 00:38:21 +0000 (20:38 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 14 Sep 2016 19:14:46 +0000 (19:14 +0000)
commitf2b6afd2df73eeb3e09887c852e6459f9d6cac49
treea44a484f08efe89614293fffdfd43cafc8f9fd8e
parent4f736ac33e8ba7a047c9ef1c4d17c7993c9048ee
sysroot: Drop an unnecessary fsync

While looking at a slow update issue (which I'm guessing is
unpredictable I/O latency in an OpenStack instance), I noticed
in one of the traces we were inside a fsync here.

Dropping the fsync here is just another of a long series of unwinding
them - we `syncfs()` the sysroot fd and `/boot` and we have a big
`sync()` anyways.

Closes: #508
Approved by: jlebon
src/libostree/ostree-sysroot-deploy.c
src/libotutil/ot-gio-utils.c
src/libotutil/ot-gio-utils.h